package com.swxc.ssm.service.impl;

import com.swxc.ssm.mapper.SchoolMapper;
import com.swxc.ssm.po.School;
import com.swxc.ssm.service.SchoolService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by admin on 2017/7/27.
 */
public class SchoolServicelmpl implements SchoolService{

    @Autowired
    private SchoolMapper schoolMapper;

    @Override
    public List<School> selectAll() {
        return schoolMapper.selectAll();
    }

    @Override
    public int deleteByPrimaryKey(Integer ID) {
        return schoolMapper.deleteByPrimaryKey(ID);
    }

    @Override
    public int insert(School record) {
        return schoolMapper.insert(record);
    }

    @Override
    public int insertSelective(School record) {
        return schoolMapper.insertSelective(record);
    }

    @Override
    public School selectByPrimaryKey(Integer ID) {
        return schoolMapper.selectByPrimaryKey(ID);
    }

    @Override
    public int updateByPrimaryKeySelective(School record) {
        return schoolMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(School record) {
        return schoolMapper.updateByPrimaryKey(record);
    }
}
